package com.itjianren.employeemanagementsystem.model;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Employee {
    private Integer id;
    private String name;
    private String department;
    private String position;
    private BigDecimal salary;
    private String email;
    private String phone;
    // 添加日期格式注解，解决转换问题
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hireDate;

    private Integer createdBy;
    private Date createdAt;
    private Date updatedAt;
}